package ptumall.model.shop;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class GoodsSearch {
    @NotBlank(message = "搜索关键词不能为空")
    private String keyword;

    @Min(value = 1, message = "页码最小为1")
    private Integer page = 1;

    @Range(min = 1, max = 100, message = "每页数量需在1-100之间")
    private Integer pageSize = 10;
}
